<!DOCTYPE html>
<html>
    <meta charset="UTF-8">
    <head>
        <script src="../js/jquery-1.11.2.min.js" type="text/javascript" language="javascript"></script>
        <script src="../js/jquery.printarea.js" type="text/JavaScript" language="javascript"></script>
    </head>
<body>

    <button>打印</button>

    <h1 id="yes">让你打印!</h1>

    <h1 id="no">不让你打印!</h1>
    <script>
        $( "button" ).click( function(){

        } )
        $( "#yes" ).printArea(  );
    </script>
</body>
</html>
